package com.example.customer.mapper;

import com.example.customer.dto.PageBean;
import entity.policyholders_info;
import entity.recognizee_info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface pageMapper {
    //投保人
    public int getRowPolicyholdersInfo(@Param("name") String name,@Param("credentials_number") String credentials_number);

    public List<policyholders_info> getAllPolicyholdersInfo(PageBean p) throws Exception;

    public List<policyholders_info> getAllPolicyholdersInfos() throws Exception;

    //被投保人
    public int getRowRecognizeeInfo(@Param("name") String name,@Param("credentials_number") String credentials_number);

    public List<recognizee_info> getAllRecognizeeInfo(PageBean p) throws Exception;

    public List<recognizee_info> getAllRecognizeeInfos() throws Exception;


}